package com.jsmile.cloud.accountcenter.api.req;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

import com.jsmile.mall.api.to.BaseUpdateTo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

/**
 * @author 龚亮
 * @version 1.0
 * @desc 为了薪资破万，还是睡一会儿吧...!
 * @date 2019年04月01日 04:45:35
 */
@Data
@ApiModel
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class ReqMemberRegister extends BaseUpdateTo {

    @ApiModelProperty(value = "手机号码")
    private String phone;
    @ApiModelProperty("租户id")
    @NotNull(message = "租户id不能为空")
    private Long tenantId;
    @ApiModelProperty("用户id")
    @NotNull(message = "用户id不能为空")
    private Long userId;
    @ApiModelProperty(value = "微信openid")
    private String openId;
    @ApiModelProperty(value = "微信公众号openid")
    private String appOpenId;
    @ApiModelProperty(value = "账户姓名")
    @NotBlank
    private String name;
    @ApiModelProperty(value = "邮箱")
    private String email;
    @ApiModelProperty(value = "描述")
    private String remark;

    @ApiModelProperty(value = "省")
    private String province;
    @ApiModelProperty(value = "市")
    private String city;
    @ApiModelProperty(value = "区")
    private String district;
    @ApiModelProperty(value = "详细地址")
    private String detailAddress;
    @ApiModelProperty(value = "性别")
    private String gender;
    @ApiModelProperty(value = "头像")
    private String faceLink;
}
